<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Segment Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_segment.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_vect_sharp_1_1_segment-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Segment Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">

<p>Represents a segment as part of a <a class="el" href="class_vect_sharp_1_1_graphics_path.html" title="Represents a graphics path that can be filled or stroked.">GraphicsPath</a>.   
 <a href="class_vect_sharp_1_1_segment.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad8cc11af24e64a2d051c5ff7f202ebf4"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#ad8cc11af24e64a2d051c5ff7f202ebf4">Clone</a> ()</td></tr>
<tr class="memdesc:ad8cc11af24e64a2d051c5ff7f202ebf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.   <a href="class_vect_sharp_1_1_segment.html#ad8cc11af24e64a2d051c5ff7f202ebf4">More...</a><br /></td></tr>
<tr class="separator:ad8cc11af24e64a2d051c5ff7f202ebf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac9c042afe5a826270fb9e79df5082c3"><td class="memItemLeft" align="right" valign="top">abstract double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#aac9c042afe5a826270fb9e79df5082c3">Measure</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> previousPoint)</td></tr>
<tr class="memdesc:aac9c042afe5a826270fb9e79df5082c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the length of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.   <a href="class_vect_sharp_1_1_segment.html#aac9c042afe5a826270fb9e79df5082c3">More...</a><br /></td></tr>
<tr class="separator:aac9c042afe5a826270fb9e79df5082c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4173586c74090dbb8d2762092c9da75d"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#a4173586c74090dbb8d2762092c9da75d">GetPointAt</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> previousPoint, double position)</td></tr>
<tr class="memdesc:a4173586c74090dbb8d2762092c9da75d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the point on the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> at the specified (relative) <em>position</em> ).   <a href="class_vect_sharp_1_1_segment.html#a4173586c74090dbb8d2762092c9da75d">More...</a><br /></td></tr>
<tr class="separator:a4173586c74090dbb8d2762092c9da75d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace97767c117ee2d9b1935b3b32388af7"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#ace97767c117ee2d9b1935b3b32388af7">GetTangentAt</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> previousPoint, double position)</td></tr>
<tr class="memdesc:ace97767c117ee2d9b1935b3b32388af7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the tangent to the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> at the specified (relative) <em>position</em> ).   <a href="class_vect_sharp_1_1_segment.html#ace97767c117ee2d9b1935b3b32388af7">More...</a><br /></td></tr>
<tr class="separator:ace97767c117ee2d9b1935b3b32388af7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eb58131fe977a05565b1fa2e84566d9"><td class="memItemLeft" align="right" valign="top">abstract IEnumerable&lt; <a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#a8eb58131fe977a05565b1fa2e84566d9">Linearise</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>? previousPoint, double resolution)</td></tr>
<tr class="memdesc:a8eb58131fe977a05565b1fa2e84566d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform the segment into a series of linear segments. Segments that are already linear are not changed.   <a href="class_vect_sharp_1_1_segment.html#a8eb58131fe977a05565b1fa2e84566d9">More...</a><br /></td></tr>
<tr class="separator:a8eb58131fe977a05565b1fa2e84566d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80351b51c0972eacd7da135b912eb3da"><td class="memItemLeft" align="right" valign="top">abstract IEnumerable&lt; <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#a80351b51c0972eacd7da135b912eb3da">GetLinearisationTangents</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>? previousPoint, double resolution)</td></tr>
<tr class="memdesc:a80351b51c0972eacd7da135b912eb3da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the tanget at the points at which the segment would be linearised.   <a href="class_vect_sharp_1_1_segment.html#a80351b51c0972eacd7da135b912eb3da">More...</a><br /></td></tr>
<tr class="separator:a80351b51c0972eacd7da135b912eb3da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28fa2e93c13e54bf6deabba2c4219ac7"><td class="memItemLeft" align="right" valign="top">abstract IEnumerable&lt; <a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#a28fa2e93c13e54bf6deabba2c4219ac7">Transform</a> (Func&lt; <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>, <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> &gt; transformationFunction)</td></tr>
<tr class="memdesc:a28fa2e93c13e54bf6deabba2c4219ac7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Applies an arbitrary transformation to all of the points of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.   <a href="class_vect_sharp_1_1_segment.html#a28fa2e93c13e54bf6deabba2c4219ac7">More...</a><br /></td></tr>
<tr class="separator:a28fa2e93c13e54bf6deabba2c4219ac7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03a28cce2959b321a0598ec733d180da"><td class="memItemLeft" align="right" valign="top">abstract IEnumerable&lt; <a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#a03a28cce2959b321a0598ec733d180da">Flatten</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>? previousPoint, double flatness)</td></tr>
<tr class="memdesc:a03a28cce2959b321a0598ec733d180da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flattens the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>, replacing curve segments with series of line segments that approximate them, ensuring the specified maximum deviation from the original path.   <a href="class_vect_sharp_1_1_segment.html#a03a28cce2959b321a0598ec733d180da">More...</a><br /></td></tr>
<tr class="separator:a03a28cce2959b321a0598ec733d180da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9004048ae34d4bf93c945249a3ec7cd"><td class="memItemLeft" align="right" valign="top">abstract IEnumerable&lt;(<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> point, <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> tangent)&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#ac9004048ae34d4bf93c945249a3ec7cd">FlattenForOffsetAndGetTangents</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>? previousPoint, double offset, double flatness)</td></tr>
<tr class="memdesc:ac9004048ae34d4bf93c945249a3ec7cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flattens the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>, replacing curve segments with series of line segments that approximate them, ensuring the specified maximum deviation from the original path, assuming that the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> will be drawn with the specified <em>offset</em> .   <a href="class_vect_sharp_1_1_segment.html#ac9004048ae34d4bf93c945249a3ec7cd">More...</a><br /></td></tr>
<tr class="separator:ac9004048ae34d4bf93c945249a3ec7cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a54f86cb60f2affda241370f302703b63"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="namespace_vect_sharp.html#ad82c158fff255cb1cbe8d51de61cb4e4">SegmentType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#a54f86cb60f2affda241370f302703b63">Type</a><code> [get]</code></td></tr>
<tr class="memdesc:a54f86cb60f2affda241370f302703b63"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.   <a href="class_vect_sharp_1_1_segment.html#a54f86cb60f2affda241370f302703b63">More...</a><br /></td></tr>
<tr class="separator:a54f86cb60f2affda241370f302703b63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7c3d3a529ef22a4e236c254fe22c809"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#ad7c3d3a529ef22a4e236c254fe22c809">Points</a><code> [get]</code></td></tr>
<tr class="memdesc:ad7c3d3a529ef22a4e236c254fe22c809"><td class="mdescLeft">&#160;</td><td class="mdescRight">The points used to define the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.   <a href="class_vect_sharp_1_1_segment.html#ad7c3d3a529ef22a4e236c254fe22c809">More...</a><br /></td></tr>
<tr class="separator:ad7c3d3a529ef22a4e236c254fe22c809"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0ba21d6c10d9c9bd0926c46968f651d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_segment.html#ad0ba21d6c10d9c9bd0926c46968f651d">Point</a><code> [get]</code></td></tr>
<tr class="memdesc:ad0ba21d6c10d9c9bd0926c46968f651d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The end point of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.   <a href="class_vect_sharp_1_1_segment.html#ad0ba21d6c10d9c9bd0926c46968f651d">More...</a><br /></td></tr>
<tr class="separator:ad0ba21d6c10d9c9bd0926c46968f651d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents a segment as part of a <a class="el" href="class_vect_sharp_1_1_graphics_path.html" title="Represents a graphics path that can be filled or stroked.">GraphicsPath</a>.  </p>

<p class="definition">Definition at line <a class="el" href="_segment_8cs_source.html#l00029">29</a> of file <a class="el" href="_segment_8cs_source.html">Segment.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ad8cc11af24e64a2d051c5ff7f202ebf4" name="ad8cc11af24e64a2d051c5ff7f202ebf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8cc11af24e64a2d051c5ff7f202ebf4">&#9670;&#160;</a></span>Clone()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract <a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a> VectSharp.Segment.Clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a copy of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.  </p>
<dl class="section return"><dt>Returns</dt><dd>A copy of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.</dd></dl>

</div>
</div>
<a id="a03a28cce2959b321a0598ec733d180da" name="a03a28cce2959b321a0598ec733d180da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03a28cce2959b321a0598ec733d180da">&#9670;&#160;</a></span>Flatten()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract IEnumerable&lt; <a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a> &gt; VectSharp.Segment.Flatten </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>?&#160;</td>
          <td class="paramname"><em>previousPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>flatness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flattens the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>, replacing curve segments with series of line segments that approximate them, ensuring the specified maximum deviation from the original path.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">previousPoint</td><td>The point from which the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> starts (i.e. the endpoint of the previous <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
    <tr><td class="paramname">flatness</td><td>The maximum deviation from the original path.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A collection of <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>s composed only of linear segments that approximates the current <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.</dd></dl>

</div>
</div>
<a id="ac9004048ae34d4bf93c945249a3ec7cd" name="ac9004048ae34d4bf93c945249a3ec7cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9004048ae34d4bf93c945249a3ec7cd">&#9670;&#160;</a></span>FlattenForOffsetAndGetTangents()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract IEnumerable&lt;(<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> point, <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> tangent)&gt; VectSharp.Segment.FlattenForOffsetAndGetTangents </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>?&#160;</td>
          <td class="paramname"><em>previousPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>flatness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flattens the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>, replacing curve segments with series of line segments that approximate them, ensuring the specified maximum deviation from the original path, assuming that the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> will be drawn with the specified <em>offset</em> .  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">previousPoint</td><td>The point from which the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> starts (i.e. the endpoint of the previous <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
    <tr><td class="paramname">offset</td><td>The offset that will be used to draw the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> (e.g., the line width of the stroke).</td></tr>
    <tr><td class="paramname">flatness</td><td>The maximum deviation from the original path.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A collection of tuples where the first element is a <a class="el" href="struct_vect_sharp_1_1_point.html" title="Represents a point relative to an origin in the top-left corner.">Point</a> representing the end-point of a linear segment, and the second element is a <a class="el" href="struct_vect_sharp_1_1_point.html" title="Represents a point relative to an origin in the top-left corner.">Point</a> containing the value of the tangent to the original <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> at that point.</dd></dl>

</div>
</div>
<a id="a80351b51c0972eacd7da135b912eb3da" name="a80351b51c0972eacd7da135b912eb3da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80351b51c0972eacd7da135b912eb3da">&#9670;&#160;</a></span>GetLinearisationTangents()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract IEnumerable&lt; <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> &gt; VectSharp.Segment.GetLinearisationTangents </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>?&#160;</td>
          <td class="paramname"><em>previousPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>resolution</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the tanget at the points at which the segment would be linearised.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">previousPoint</td><td>The point from which the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> starts (i.e. the endpoint of the previous <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
    <tr><td class="paramname">resolution</td><td>The absolute length between successive samples in curve segments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A collection of tangents at the points in which the segment would be linearised.</dd></dl>

</div>
</div>
<a id="a4173586c74090dbb8d2762092c9da75d" name="a4173586c74090dbb8d2762092c9da75d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4173586c74090dbb8d2762092c9da75d">&#9670;&#160;</a></span>GetPointAt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> VectSharp.Segment.GetPointAt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>previousPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the point on the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> at the specified (relative) <em>position</em> ).  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">previousPoint</td><td>The point from which the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> starts (i.e. the endpoint of the previous <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
    <tr><td class="paramname">position</td><td>The relative position on the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> (0 is the start of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>, 1 is the end of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The point at the specified position.</dd></dl>

</div>
</div>
<a id="ace97767c117ee2d9b1935b3b32388af7" name="ace97767c117ee2d9b1935b3b32388af7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace97767c117ee2d9b1935b3b32388af7">&#9670;&#160;</a></span>GetTangentAt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> VectSharp.Segment.GetTangentAt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>previousPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the tangent to the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> at the specified (relative) <em>position</em> ).  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">previousPoint</td><td>The point from which the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> starts (i.e. the endpoint of the previous <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
    <tr><td class="paramname">position</td><td>The relative position on the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> (0 is the start of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>, 1 is the end of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The tangent to the point at the specified position.</dd></dl>

</div>
</div>
<a id="a8eb58131fe977a05565b1fa2e84566d9" name="a8eb58131fe977a05565b1fa2e84566d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8eb58131fe977a05565b1fa2e84566d9">&#9670;&#160;</a></span>Linearise()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract IEnumerable&lt; <a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a> &gt; VectSharp.Segment.Linearise </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>?&#160;</td>
          <td class="paramname"><em>previousPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>resolution</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Transform the segment into a series of linear segments. Segments that are already linear are not changed.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">previousPoint</td><td>The point from which the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> starts (i.e. the endpoint of the previous <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
    <tr><td class="paramname">resolution</td><td>The absolute length between successive samples in curve segments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A collection of linear segments that approximate the current segment.</dd></dl>

</div>
</div>
<a id="aac9c042afe5a826270fb9e79df5082c3" name="aac9c042afe5a826270fb9e79df5082c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac9c042afe5a826270fb9e79df5082c3">&#9670;&#160;</a></span>Measure()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract double VectSharp.Segment.Measure </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>previousPoint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the length of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">previousPoint</td><td>The point from which the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a> starts (i.e. the endpoint of the previous <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The length of the segment.</dd></dl>

</div>
</div>
<a id="a28fa2e93c13e54bf6deabba2c4219ac7" name="a28fa2e93c13e54bf6deabba2c4219ac7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28fa2e93c13e54bf6deabba2c4219ac7">&#9670;&#160;</a></span>Transform()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract IEnumerable&lt; <a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a> &gt; VectSharp.Segment.Transform </td>
          <td>(</td>
          <td class="paramtype">Func&lt; <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>, <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> &gt;&#160;</td>
          <td class="paramname"><em>transformationFunction</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Applies an arbitrary transformation to all of the points of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">transformationFunction</td><td>An arbitrary transformation function.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A collection of <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>s that have been transformed according to the <em>transformationFunction</em> .</dd></dl>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="ad0ba21d6c10d9c9bd0926c46968f651d" name="ad0ba21d6c10d9c9bd0926c46968f651d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0ba21d6c10d9c9bd0926c46968f651d">&#9670;&#160;</a></span>Point</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> VectSharp.Segment.Point</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The end point of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.  </p>

<p class="definition">Definition at line <a class="el" href="_segment_8cs_source.html#l00045">45</a> of file <a class="el" href="_segment_8cs_source.html">Segment.cs</a>.</p>

</div>
</div>
<a id="ad7c3d3a529ef22a4e236c254fe22c809" name="ad7c3d3a529ef22a4e236c254fe22c809"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7c3d3a529ef22a4e236c254fe22c809">&#9670;&#160;</a></span>Points</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> [] VectSharp.Segment.Points</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The points used to define the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.  </p>

<p class="definition">Definition at line <a class="el" href="_segment_8cs_source.html#l00040">40</a> of file <a class="el" href="_segment_8cs_source.html">Segment.cs</a>.</p>

</div>
</div>
<a id="a54f86cb60f2affda241370f302703b63" name="a54f86cb60f2affda241370f302703b63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54f86cb60f2affda241370f302703b63">&#9670;&#160;</a></span>Type</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract <a class="el" href="namespace_vect_sharp.html#ad82c158fff255cb1cbe8d51de61cb4e4">SegmentType</a> VectSharp.Segment.Type</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The type of the <a class="el" href="class_vect_sharp_1_1_segment.html" title="Represents a segment as part of a GraphicsPath.">Segment</a>.  </p>

<p class="definition">Definition at line <a class="el" href="_segment_8cs_source.html#l00035">35</a> of file <a class="el" href="_segment_8cs_source.html">Segment.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp/<a class="el" href="_segment_8cs_source.html">Segment.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_segment.html">Segment</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
